// 时长 XX天XX时XX分
export const timeLong = (time) => {
    if (typeof time ==='string') return time
    if (time < 0) return '0天0时0分'
    const day = time / (1000 * 60 * 60 * 24)
    const hour = time % (1000 * 60 * 60 * 24) / (1000 * 60 * 60)
    const minute = time % (1000 * 60 * 60) / (1000 * 60)
    const second = time % (1000 * 60) / 1000
    return `${parseInt(day) || 0}天${parseInt(hour) || 0}时${parseInt(minute) || 0}分`
}